#ifndef COMMENTLISTWIDGET_H
#define COMMENTLISTWIDGET_H

#include <QWidget>
#include <QVBoxLayout>
#include <QLabel>
#include <QScrollArea>
#include <QPushButton>
#include <QLineEdit>
#include <QRandomGenerator>
#include <QList>
#include "component/item/CommentItemWidget.h"
#include "network/DataAccess.h"

class CommentListWidget : public QWidget
{
    Q_OBJECT
public:
    explicit CommentListWidget(QWidget *parent = nullptr);
    void updateContent();
    void load(const QList<Comment> &comments);
    void clear();

private:
    int currentPage;
    int totalPages;
    QWidget *container;
    QVBoxLayout *contentLayout;

signals:
};

#endif // COMMENTLISTWIDGET_H
